import React, { PureComponent } from 'react'
import styles from './index.less'

export default class TreeIcon extends PureComponent {
  render() {
    const { color, iconName } = this.props
    return (
      <span className={`${styles.tree_icon} ${styles[color]}`}>
        <i className={`iconfont ${iconName}`} />
      </span>
    )
  }
}
